package com.yuanfeng.job.job;



import com.yuanfeng.job.service.UpdateSalesPromStateService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;


/**
 * @author lxt
 *代金券红包修改
 */
public class SalesPromotionsJob implements BaseJob {

	private static final Logger logger = LoggerFactory.getLogger(SalesPromotionsJob.class);

	@Autowired
	UpdateSalesPromStateService updateSalesPromStateService;

	public SalesPromotionsJob() {

	}

	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		String receiveString = updateSalesPromStateService.updateState();
		logger.info(new Date() + receiveString);

	}
}  